﻿@model IEnumerable<Capacitacion.Models.Person>
@{
    ViewBag.Title = "List";
}
<h2>People</h2>
@using (@Html.BeginForm("Index", "List", FormMethod.Get))
{
    <p>
        Genero: @Html.DropDownList("genero", new SelectList(ViewBag.Generos), "All")
        <input type="submit" value="Filter" />
    </p>
}
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<p>
    @Html.ActionLink("Muestra", "Muestra", "List")
</p>
<table>
    <tr>
        <th>
            ID
        </th>
        <th>
            Nombre
        </th>
        <th>
            Apellido
        </th>
        <th>
            NumDoc
        </th>
        <th>
            Multiple-Options
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Id)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Nombre)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Apellido)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.NumDoc)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                @Html.ActionLink("Details", "Details", new { id = item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
        </tr>
    }
</table>
<p>
    @Html.ActionLink("Back to Home", "Index", "Home")
</p>
